package com.yanqu.road.entity.log.summerquiz;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_summer_quiz_guess", autoSave = true, dataUpload = true, eventName = "summeet_guess", desc = "竞猜")
public class LogSummerQuizGuess extends BaseLogEntity {

    @FieldTypeAnnotation(desc = "活动id", dataAttribute = "activityid", select = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "玩家id")
    private long userId;

    @FieldTypeAnnotation(desc = "夏日活动id")
    private int gameActivityId;

    @FieldTypeAnnotation(desc = "竞猜题目id", dataAttribute = "summeet_guetitle")
    private int titleId;

    @FieldTypeAnnotation(desc = "选择", dataAttribute = "summeet_guechose")
    private int selectId;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogSummerQuizGuess(int activityId, int gameActivityId, long userId, int titleId, int selectId) {
        this.activityId = activityId;
        this.gameActivityId = gameActivityId;
        this.userId = userId;
        this.titleId = titleId;
        this.selectId = selectId;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getGameActivityId() {
        return gameActivityId;
    }

    public void setGameActivityId(int gameActivityId) {
        this.gameActivityId = gameActivityId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getTitleId() {
        return titleId;
    }

    public void setTitleId(int titleId) {
        this.titleId = titleId;
    }

    public int getSelectId() {
        return selectId;
    }

    public void setSelectId(int selectId) {
        this.selectId = selectId;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
